<?php
/**
 * My new Zend Framework project
 * 
 * @author  
 * @version 
 */

define("CURRENT_DIR", dirname(__FILE__));

set_include_path(CURRENT_DIR.'/.' . PATH_SEPARATOR . CURRENT_DIR.'/../library' . PATH_SEPARATOR . CURRENT_DIR.'/../application/default/models/' . PATH_SEPARATOR . get_include_path());

require_once 'Initializer.php';
require_once "Zend/Loader.php"; 

// Set up autoload.
Zend_Loader::registerAutoload(); 
 
// Init of Main Libary
MF_Main::getInstance(CURRENT_DIR.'/../config/config.ini');

// Prepare the front controller. 
$frontController = Zend_Controller_Front::getInstance(); 

// Change to 'production' parameter under production environemtn
$frontController->registerPlugin(new Initializer('development'));    

// Dispatch the request using the front controller. 
$frontController->dispatch();
?>

